class Person:
    def __init__(self,name,age):
        self.name = name
        self.age = age

    def eat(self):
        print(self.name+' is eat')

    def sleep(self):
        print(self.name+' is sleep')

    def work(self):
        print(self.name+' is working')

p = Person("Tom",20)
p.eat()
p.sleep()
p.work()
p.name = "jerry"
p.sleep()